<?php foreach($categories as $category) : ?>
<h1><?php echo html($category['name']); ?></h1>
<ul>
	<?php foreach($category['books'] as $book) : ?>
	<li>
		<a
			href="<?php echo html($_SERVER['HTTP_ROOT']); ?>livre/<?php echo url_format($book['id'].'-'.$book['title']) ?>"
			title="<?php echo html($book['title']); ?>"><?php echo html($book['title']); ?>
		</a>, par 
		<a
			href="<?php echo html($_SERVER['HTTP_ROOT']); ?>auteur/<?php echo url_format($book['author_id'].'-'.$book['author_name']); ?>"
			title=""><?php echo html($book['author_name']); ?>
		</a>
	</li>
	<?php endforeach; ?>
</ul>
<?php endforeach; ?>

